/// @tags: Construct
#include <cstdio>
#include <iostream>

using namespace std;

namespace BlueQuantum {

int const N = 2e5 + 5;

char ans[N];

inline int main() {
  int a, b, k;
  cin >> a >> b >> k;
  for (int i = 0; i < b; ++i) ans[i] = '1';
  for (int i = b; i < a + b; ++i) ans[i] = '0';
  int lst = 1;
  while (lst + k < a + b && ans[lst + k] != '0') lst++;
  if ((lst + k >= a + b || ans[lst] == '0') && k != 0) cout << "NO\n";
  else {
    cout << "YES\n" << ans << '\n';
    swap(ans[lst], ans[lst + k]);
    cout << ans << '\n';
  }
  return 0;
}

}  // namespace BlueQuantum

int main() {
#ifndef ONLINE_JUDGE
#ifdef LOCAL
  freopen("/tmp/CodeTmp/testdata.in", "r", stdin);
  freopen("/tmp/CodeTmp/testdata.out", "w", stdout);
#else
  freopen("D Genius's Gambit.in", "r", stdin);
  freopen("D Genius's Gambit.out", "w", stdout);
#endif
#endif

  ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  return BlueQuantum::main();
}
